// stores/pageStore.js
import { defineStore } from "pinia";

export const usePageStore = defineStore("page", {
  state: () => ({
    currentPath: "/",
    previousPath: null,
  }),
  actions: {
    updatePage(path) {
      this.previousPath = this.currentPath;
      this.currentPath = path;
    },
  },
});
